const Koa = require('koa');
const cors = require('koa-cors');
const bodyParser = require('koa-bodyparser');
const app = new Koa()

app.use(cors());
app.use(bodyParser());
app.use(require('./routes/index').routes())

app.listen('8888', ()=>{
    console.log(`服务启动成功  port 8888`);
});